class Banner {
  String desc;
  String id;
  String imagePath;
  String url;
}

class Article {
  String link;
  String title;
  String author;
  String envelopePic;

  Article(this.link, this.title, this.author, this.envelopePic);

  Article.fromJson(Map<String, dynamic> json)
      : link = json['link'],
        title = json['title'],
        author = json['author'],
        envelopePic = json['envelopePic'];
}

class MainModel {
  List<Banner> banners = List();

  //https://www.wanandroid.com/article/list/0/json
  List<Article> articles = List();
}
